package com.zhai.boot.dao.table;

import com.zhai.boot.domain.table.DemoTable;

import java.util.List;

/**
 * @package: com.zhai.boot.dao
 * @project-name: zhai-boot
 * @description: demo Dao 接口
 * @author: Created by 翟凤玺
 * @create-datetime: 2018-8-2 10:36
 */
public interface DemoDao {

    /**
     * 通用
     */
    DemoTable getById(String id);

    DemoTable getByCode(String code);

    DemoTable getByMain(DemoTable table);

    List<DemoTable> getListByMain(DemoTable table);

    Integer insert(DemoTable table);

    Integer update(DemoTable table);

    Integer delete(DemoTable table);
}
